import 'element-plus/dist/index.css';

import { createApp } from 'vue';

import { createPinia } from 'pinia';
import piniaPluginPersist from 'pinia-plugin-persist';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

// import ElementPlus from 'element-plus';
import App from './App.vue';
import router from './router';

const pinia = createPinia()
const app = createApp(App)
    //     // ElementPlus 完整引入
    // app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
pinia.use(piniaPluginPersist)
app.use(pinia)
app.use(router)
app.mount('#app')